/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package data;

import model.Activity;
import model.Category;
import model.Cookbook;
import model.Product;
import model.Measure;
import model.Recipe;
import searchers.RecentlySearcher;
import utils.DataProvider;

/**
 *
 * @author zimi
 */
public class SampleDataProvider implements DataProvider{

    public boolean exportXML(Cookbook cookbook) {
        throw new RuntimeException("Not supported yet.");
    }

    public Cookbook importXML() {
        Cookbook cookbook = new Cookbook();

        IngredientMenu.init(cookbook);
        CategoryMenu.init(cookbook);

        cookbook.addPossibleMeasure(Measure.getGram());
        cookbook.addPossibleMeasure(Measure.getKilogram());
        cookbook.addPossibleMeasure(Measure.getLitre());
        cookbook.addPossibleMeasure(Measure.getMililitre());
        cookbook.addPossibleMeasure(Measure.getNoUnit());
        cookbook.addPossibleMeasure(Measure.getUnit());

        cookbook.addRecipe(RecipeMenu.getBigos());
        cookbook.addRecipe(RecipeMenu.getZupaPomidorowa());
        cookbook.addRecipe(RecipeMenu.getPizza());
        cookbook.addRecipe(RecipeMenu.getNalesniki());
        cookbook.addRecipe(RecipeMenu.getZapiekanki());
        cookbook.addRecipe(RecipeMenu.getTiramisu());
        cookbook.addRecipe(RecipeMenu.getFrytki());
        cookbook.addRecipe(RecipeMenu.getKrewetki());
        cookbook.addRecipe(RecipeMenu.getPyzyZiemniaczane());
        cookbook.addRecipe(RecipeMenu.getRybaPoGrecku());
        cookbook.addRecipe(RecipeMenu.getSchabPoBurgundzku());
        cookbook.addRecipe(RecipeMenu.getTortCzekoladowy());


        return cookbook;
    }

}
